<template>
	<view :class="['cu-modal',type,show?'show':'']"  @tap="hideModal" @touchmove.stop="">
		<!-- 外部点击取消弹框 -->
		<view class="cu-dialog" @tap.stop="">
			<slot></slot>
		</view>
	</view>
</template>

<script>
	export default {
		name: "HPopup",
		props: {
			type: {
				type: String,
				default: ""
			},
			show: {
				type: Boolean,
				default: false
			}
		},
		methods: {
			hideModal() {
				this.$emit("update:show", false)
			}
		}
	}
</script>

<style>
</style>
